package com.shop.zkmall.app.controller.a;

import com.shop.zkmall.app.service.a.ICereBuyerLiveCategoryService;
import com.shop.zkmall.commons.result.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("liveCategory")
@RequiredArgsConstructor
@Tag(name = "直播分类模块", description = "直播分类模块")
public class LiveCategoryController {

    private final ICereBuyerLiveCategoryService iCereBuyerLiveCategoryService;

    /**
     * 所有分类
     */
    @PostMapping("/allLiveCategory")
    @Operation(summary = "所有分类")
    public R<?> allLiveCategory() {
        return iCereBuyerLiveCategoryService.allLiveCategory();
    }

}
